﻿package com.xuanque.mahjongDice.display 
{
	//import com.xuanque.mahjongDice.Interface.IUser;
	import flash.display.*;
	import flash.text.*;
	import datas.Players;
	
	/**
	 * ...
	 * @author DefaultUser (Tools -> Custom Arguments...)
	 */
	public class GameResultItem extends Sprite
	{
		private var list_text:String;
		
		public function GameResultItem(list_array:Array) {
			
			this.list_text = list_array[0];
			
			this.name_txt.text = Players.getInstance().getPlayerInfo(list_array[0]).getNickName() + "";
			this.prev_txt.text =  list_array[1] +  "";
			
			if ( list_array[1] == 0 ) {
				
				this.isWin_mc.gotoAndStop(3);
			}else if ( list_array[1] >0 ) {
				
				this.isWin_mc.gotoAndStop(1);
			}else {
				
				this.isWin_mc.gotoAndStop(2);
			}
			
		}
		
		/**
		 * @ 用户名
		 */		
		public function get _text():String{
			return this.list_text;
		} 
		
		
	}
	
}